bin = crpg
objs = Spot.o TextParser.o Fight.o Game.o
cflags = -c -g
cc = g++

all: $(objs)

TextParser.o: TextParser.cpp TextParser.h
	$(cc) $(cflags) TextParser.cpp
Spot.o: Spot.cpp Spot.h
	$(cc) $(cflags) Spot.cpp
Fight.o: Fight.cpp Fight.h global.h
	g++ -g -c Fight.cpp
Game.o: Game.cpp Game.h TextParser.h global.h
	g++ -g -c Game.cpp
# global.o: global.cpp global.h
# 	g++ -g -c global.cpp

# crpg: TextParser.o CFight.o CGame.o global.o
# 	g++ TextParser.o CFight.o CGame.o global.o -o crpg

# TextParser.o: TextParser.cpp TextParser.h global.h
# 	g++ -g -c TextParser.cpp

# .PHONY: clean

clean:
	rm *.o
	rm crpg

